export const RnMessage = {
  postMessage: (params: { event: string; data?: any; type: "core" | "appsFlyers" }) => {
    console.log("postMessage", params);
    const newObject = {
      event: "",
      data: {},
      type: "core",
    };
    Object.assign(newObject, params);
    window.postMessage(JSON.stringify(newObject));
  },
};
